import {createRoot} from 'react-dom/client'
import {RouterProvider} from "react-router-dom";
import router from "@/router";
import {Provider} from "react-redux";
import store from "@/store";

const root = createRoot(document.querySelector('#root'))

root.render(
    <Provider store={store}>
        {/*路由绑定到根组件*/}
        <RouterProvider router={router}/>
    </Provider>
)
